Figure ground organization of 3-D scenes

ABSTRACT

Systems and methods for processing a pair of 2-D images are described. In one example, a stereoscopic set of images is converted into a collection of regions that represent individual 3-D objects in the pair of images. In one embodiment, the system recovers the 3-D point P for each point p that appears in both images. It estimates the 3-D orientation of the floor plane, and the image capture planes and their height from the floor. The system then identifies the collection B of points P that do not represent points on the floor and generates a projection C of B onto a plane parallel to the floor. It blurs the projection C and identifies peaks in the blurred image, then fits symmetric figures to the points in C around the identified peaks. The system projects the 3-D figures associated with the symmetric figures back onto the 2-D images.

CROSS REFERENCE TO RELATED APPLICATIONS

This application is a continuation of U.S. patent application Ser. No. 14/001,227 filed Aug. 23, 2013, which is a national stage filing of PCT/US2012/026660, filed Feb. 24, 2012, which claims the benefit of priority to U.S. Provisional Patent Application Ser. No. 61/446,489, filed Feb. 24, 2011, all of which are incorporated herein by reference in their entirety.

GOVERNMENT RIGHTS

This invention was made with government support under Grant Number FA9550-09-D-0207 awarded by the United States Air Force Office of Scientific Research. The government has certain rights in the invention.

FIELD

This disclosure relates to processing of images. More particularly, the disclosure relates to the estimation of object locations from a stereoscopic pair of images.

SUMMARY

Systems and methods for processing a pair of 2-D images are described. In one example, a stereoscopic set of images is converted into a collection of regions that represent individual 3-D objects in the pair of images. In some embodiments, the system recovers the 3-D point P for each point p that appears in both images. It estimates the 3-D orientation of the plane of the floor, the image capture planes, and the height of the image capture planes from the floor. The system then identifies the collection B of points P that do not represent points on the floor and generates a projection C of B onto a plane parallel to the floor. It blurs the projection C and identifies peaks in the blurred image, then fits symmetric figures to the points in C around the identified peaks. Objects located using these symmetric figures are sometimes mapped back to the original 2-D images, while at other times the 3-D position of objects represented by the symmetric figures are used to reveal camouflaged objects, operate robots in dangerous environments, assist the elderly or disabled by supplementing navigational ability, assisting vision-impaired persons walking or driving, informing automatic driving or supplemental driver information systems, guiding robots in navigating home situations, supplementing monitoring of endoscopic and laparoscopic surgery, and the like.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a plan view of a scene being captured by a stereo camera.

FIGS. 2(a) and 2(b) are a pair of images taken by the stereo camera in FIG. 1.

FIG. 3 is a flowchart illustrating a scene recovery process according to an illustrated embodiment.

FIG. 4(a) is the blurring result of the top view image in an illustrated embodiment, where each peak/cluster corresponds to a potential object.

FIG. 4(b) illustrates the detected objects in the top-view image blurred in FIG. 4(a).

FIG. 5 illustrates the image of FIG. 2(b) overlaid with contours representing objects in the 2-D image.

DESCRIPTION

For the purpose of promoting an understanding of the principles of the present invention, reference will now be made to the embodiment illustrated in the drawings and specific language will be used to describe the same. It will, nevertheless, be understood that no limitation of the scope of the invention is thereby intended; any alterations and further modifications of the described or illustrated embodiments, and any further applications of the principles of the invention as illustrated therein are contemplated as would normally occur to one skilled in the art to which the invention relates.

Generally, one form of the present system is a method of detecting objects in 3-D scenes from two 2-D images acquired by a stereo camera. Consider as an example, with reference to FIG. 1, a scene 100 comprising several pieces of furniture (see FIGS. 2(a)-2(b)). The camera 110 is preferably calibrated using a standard method so that certain intrinsic parameters, such as the focal length (f) in terms of pixels, the principal point (μ_(X) μ_(Y)), and the distance (d) between the two lenses 111 and 113, are known. As illustrated in FIG. 3, the process 300 implemented by this embodiment includes four stages: (1) computation 310 of a depth map of visible texture points using a stereo correspondence algorithm; (2) estimation 320 of the extrinsic parameters for the camera: position and orientation relative to the floor; (3) computation 330 of the top view of the recovered 3-D points and identification of 3-D objects; and (4) projection 340 of the estimated 3-D objects on the 2-D images and identification of the 2-D regions representing the objects. In some embodiments, it is valuable that the process produces a spatially global map of a 3-D scene from a single viewpoint without physical exploration of the scene. In others, it is valuable that the process recovers objects and contours in obscured or occluded space behind other objects, making it possible to plan navigation through that space. In still other embodiments, it is important that this process can reconstruct amorphous objects such as flames and smoke.

1. Computation of Depth Map

A pair of stereoscopic images (see FIGS. 2(a)-2(b)) was acquired from a standard stereo camera 110. The camera in this embodiment is equipped with two identical lenses 111 and 113, and the principal axes 112 and 114 are parallel. This implies that given a point in the right image, its corresponding point is on the same row in the left image (sometimes known as the “epipolar constraint”) and is shifted a little to the right. Assume that a point p in the right image has coordinates expressed in homogenous coordinates: p=(x,y,1)^(T)  (1) (Note that capital letters herein represent 3-D points, and lowercase letters represent 2-D points.) Its corresponding point in the left image (assuming that it exists) is p=(x+Δx,y,1)  (2) Then in this embodiment the disparity δ for the point p is defined as follows

$\begin{matrix} {{\delta(p)} = \left\{ \begin{matrix} {\Delta\; x} & {{if}\mspace{14mu}{exists}} \\ 255 & {otherwise} \end{matrix} \right.} & (3) \end{matrix}$

Though other disparity functions will occur to those skilled in the art, this embodiment uses the Sum of Absolute Difference Correlation method (Wong, Vassiliadis & Cotofana, 2002) to compute the disparity for each point. We use o to represent those points in the right images that have corresponding points in the left image.

Using triangulation, for each point p in o, we recover the 3-D point P as follows: P=Lp and pεo  (4) where

$\begin{matrix} {{L(p)} = \begin{pmatrix} \frac{d}{\delta(p)} & 0 & {\frac{d}{2} - \frac{d\;\mu_{X}}{\delta(p)}} \\ 0 & \frac{d}{\delta(p)} & {- \frac{d\;\mu_{Y}}{\delta(p)}} \\ 0 & 0 & \frac{df}{\delta(p)} \\ 0 & 0 & 1 \end{pmatrix}} & (5) \end{matrix}$ Note L is a point-specific matrix function in terms of p. That is, for different points p, L will be different. The coordinates of the recovered point P are expressed in the camera coordinate system. As shown in FIG. 1, the origin of this coordinate system is the midpoint μ between the projection centers of the two lenses. The X axis is parallel to the line connecting the two projection centers. The XY plane is parallel to the image plane, and the Z axis represents the depth direction.

2. Extrinsic Camera Parameters

At this stage, shown as step 320 in FIG. 3, this illustrated embodiment estimates certain extrinsic camera parameters; namely, the 3-D orientation and their distance from the floor (the term being used generically herein to refer to an actual floor, the ground, a road, or any other approximately piecewise-planar surface). Typically, most of the image points represent the floor. As a result, most of the 3-D points in the depth map are floor points. In the illustrated embodiment, a 3-D plane is fit to all points in the depth map. This is done by performing a search in the 3-parameter space (3-D orientation and distance from the camera). For each 3-D plane, we count the number of 3-D points that are close to the plane. The plane which fits the maximum number of points is chosen as the floor. Once the floor is detected, the camera extrinsic parameters are determined. The details of estimating the extrinsic camera parameters are described below.

We used roll and pitch to define the orientation of the camera relative to the floor. Rotation around the principal axis of the camera is called roll, and rotation around the X axis is called pitch. When the camera faces down, the pitch angle is negative, and when the camera faces up, the pitch angle is positive. In the exemplary setup illustrated here, the stereo camera is mounted on a robot, and its roll angle is close to zero. This substantially reduces the search space for extrinsic camera calibration.

Assume that the roll and pitch angles of the camera relative to the floor are α and β (expressed, for example, in degrees), respectively, and the camera height is h (measured, for example, in millimeters). Then the floor is a function of α, β, and h. In the camera-related coordinate system, the floor plane is expressed in homogenous coordinates as follows: π(α,β,h)=(sin(α)cos(β), cos(α)cos(β),−sin(β),−h)^(T)  (6)

The vector formed by the first three elements represents the normal of the floor plane, and it has been normalized. The signed distance d between the floor plane π and the recovered point P from the set of recovered 3-D points A is: d(P)=π^(T) P and PεA.  (7) Positive distance means that the point P is under the floor, while negative means that P is above the floor.

We define a step function that characterizes whether a signed distance d is “close enough” to the floor,

$\begin{matrix} {{g(d)} = \left\{ \begin{matrix} 1 & {{d} \leq c_{1}} \\ 0 & {otherwise} \end{matrix} \right.} & (8) \end{matrix}$ where c₁ is the threshold that defines the “thickness” of the floor. The summation of g(d) over A represents the number of 3-D points that fall on (i.e., within a vertical distance c₁ of) the floor. In the illustrated embodiment, setting c₁ equal to 5 mm leads to good results. The plane that maximizes

$\sum\limits_{d \in A}^{\;}\;{g(d)}$ (i.e., the plane with maximum 3-D points “on” it) is considered the floor.

In many embodiments, the height of the camera is known, so the search for the distance of the floor from the camera is fairly limited. To speed up the search even more, some embodiments include an inclinometer on the camera for measuring the direction of gravity. This gives a good first estimate of the orientation of a horizontal floor.

Assume that the three estimated parameters for the floor are α_(F), β_(F) and h_(F). Then we can obtain the floor-related camera matrix H _(com) =KR(I _(3×3) |−C _(3×1))  (9) where

$\begin{matrix} {R = \begin{pmatrix} {\cos\left( \alpha_{F} \right)} & {{\sin\left( \alpha_{F} \right)}{\cos\left( \beta_{F} \right)}} & {{\sin\left( \alpha_{F} \right)}{\sin\left( \beta_{F} \right)}} \\ {- {\sin\left( \alpha_{F} \right)}} & {{\cos\left( \alpha_{F} \right)}{\cos\left( \beta_{F} \right)}} & {{\cos\left( \alpha_{F} \right)}{\sin\left( \beta_{F} \right)}} \\ 0 & {- {\sin\left( \beta_{F} \right)}} & {\cos\left( \beta_{F} \right)} \end{pmatrix}} & (10) \end{matrix}$ and C is defined as

$\begin{matrix} {C_{L} = \left( {{- \frac{d}{2}},0,0} \right)^{T}} & (11) \end{matrix}$ for the left camera and

$\begin{matrix} {C_{R} = \left( {\frac{d}{2},0,0} \right)^{T}} & (12) \end{matrix}$ for the right camera.

3. Identification of Objects in the Scene

In this stage (block 330 in process 300, illustrated in FIG. 3), the present embodiment generates the top view of the recovered 3-D points and identifies objects by fitting rectangles to the projected points. The frequent success of this approach is related to certain a priori constraints that are almost always satisfied in a natural 3-D scene. First, most objects are roughly mirror-symmetric in overall form. This occurs, for example, with animal and human bodies, as well as many man-made objects. Furthermore, the plane of symmetry is almost always orthogonal to the horizontal ground. This means that the symmetry of these objects will be preserved in the top view. Second, most important objects have appreciable height above the floor, and because of gravity, they have a number of vertical parts/edges/legs that serve the purpose of maintaining balance. It follows that the projection of texture points on these parts will produce a very reliable indication of the location of the objects. As a result, the presence and location of objects can be identified despite noise and occlusions. In the present embodiment, this stage 330 consists of several steps.

(1) Removal of the Floor Points

Using the floor equation obtained in stage 320, we remove from A those points that are close to the floor and all those that are under the floor (in some embodiments, the points under the floor are assumed to represent errors) and we only keep those that are above floor, B. In this step, typically about 80% of the points in the depth map are removed.

(2) Generation of the Top View.

Note that up to this point in this embodiment, the coordinates of the recovered 3-D points have been expressed in the camera coordinate system. Once the orientation of the floor is known, the depth map is expressed in the room coordinate system. In this new coordinate system, the origin is still the midpoint between the two projection centers of the cameras. The Y axis is the normal of the floor, and the X axis represents the projected direction of the old X axis (the line connecting two projection centers) on the floor. The Z axis is the cross-product of X and Y. Note that the Z value of a recovered 3-D point represents its distance to the plane that is perpendicular to the floor and passes through the two projection centers of the cameras. The top view image of the recovered 3-D points is their orthographic projection on the XZ plane. Given a 3-D point P, its corresponding point in the top view image is q=QMP and PεB  (13) where

$\begin{matrix} {Q = \begin{pmatrix} 1 & 0 & 0 & 0 \\ 0 & 0 & 1 & 0 \\ 0 & 0 & 0 & 1 \end{pmatrix}} & (14) \end{matrix}$ and

$\begin{matrix} {M = {\begin{pmatrix} R^{T} & \overset{\rightarrow}{0_{3\; X\; 1}} \\ \overset{\rightarrow T}{0_{3\; X\; 1}} & 1 \end{pmatrix}.}} & (15) \end{matrix}$ Combining Equation (4) with Equation (13), we obtain q=QMLp pεb.  (16) where b is the set of points in the original image that map to B. Equation (16) shows how we can transfer from the original depth map to top view image. In this embodiment, the top-view image is quantized so that each pixel represents a fixed-size square in the plane of the floor, (e.g., 1 mm×1 mm), in which if one or more 3-D points fall, the value for this pixel is 1. Otherwise it is 0.

(3) Detection of the Position of the Objects.

Assume that the maximum diagonal size of the objects of interest in the top view is r. First, blur the top view image using the following filter

$\begin{matrix} {{G\left( {x,y} \right)} = \left\{ {\begin{matrix} 1 & {{x^{2} + y^{2}} \leq \frac{r^{2}}{4}} \\ 0 & {otherwise} \end{matrix}.} \right.} & (17) \end{matrix}$ The value of r is preset in some embodiments, and it can be adjusted in some embodiments. FIG. 4(a) shows the result after blurring. Each peak corresponds to a potential object. The system chooses the peaks based on one or more criteria that will occur to those skilled in the art, such as the height of the peaks and pair-wise distances among the peaks. The crosses in FIG. 4(b) show the positions of peaks representing objects. Five objects were detected for the scene shown in FIGS. 2(a) and 2(b), which is a correct result.

(4) Computation of the Size and Orientation of Objects.

In the present embodiment, the system fits rectangles near the position of detected peaks. Rectangles are symmetrical figures, so they will capture the 3-D mirror symmetry of the objects. One can also use other symmetrical figures such as circles or n-gons, depending on the 3-D shapes of the objects. In the case of rectangles, there are five free parameters: the position of the center of a rectangle (2 parameters), the size of rectangle (2 parameters) and the orientation of the rectangle (1 parameter). For each possible rectangle, the system counts the number of its neighboring points. The system selects the rectangle with the maximum number of neighbor points using any suitable technique that will occur to those skilled in the art. FIG. 4(b) shows the detected rectangles in this example.

4. Projection of the Estimated 3-D Objects on the 2-D Images, and Identification of the 2-D Regions Representing the Objects

Each rectangle (or other symmetrical figure) in the top view is a projection onto the X-Z plane of a 3-D box containing (approximately) the corresponding 3-D object. The system then projects the 3-D points on the symmetrical figure onto the 2-D image of one of the two cameras. These points determine a 2-D region representing this object in the image. Five regions representing five detected objects are shown in FIG. 3. The superimposed curves A, B, C, D, and E are boundaries of convex hulls of points representing individual objects.

To summarize, steps 310-330 represent solving the 3-D figure-ground organization, and step 340 represents solving the corresponding 2-D figure-ground organization.

The output of the method may be after steps 310-330, where the system generates a signal that indicates the position of the figures in three-space. In other embodiments, the system generates a signal after step 340 that indicates the position of the figures as projected back onto the original images. In some embodiments, the 3-D position of objects represented by the symmetric figures are used to reveal camouflaged objects, operate robots in dangerous environments, assist the elderly or disabled by supplementing navigational ability, assisting vision-impaired persons as they walk or drive, informing automatic driving or supplemental driver information systems, guiding robots in navigating home situations, supplementing monitoring of endoscopic and laparoscopic surgery, and the like.

While the invention has been illustrated and described in detail in the drawings and foregoing description, the same is to be considered as illustrative and not restrictive in character, it being understood that only the preferred embodiment has been shown and described and that all changes and modifications that come within the spirit of the invention are desired to be protected. 

What is claimed is:
 1. A method for locating objects in a three-dimensional scene that includes a floor, the method comprising: capturing two images of the scene substantially simultaneously; computing a depth map of visible texture points; estimating a camera position and a camera orientation of the camera; computing a top view of the visible texture points in the depth map; identifying an object position of one or more objects in the top view; and generating a signal that characterizes the object position of the one or more objects.
 2. The method of claim 1, further comprising projecting the object position of the objects onto at least one of the two images.
 3. The method of claim 1, wherein the capturing comprises acquiring the images along parallel principal axes.
 4. The method of claim 1, wherein the computing comprises operation of a stereo correspondence algorithm.
 5. The method of claim 1, wherein the scene comprises camouflaged patterns.
 6. The method of claim 1, wherein the signal informs a navigational control of a robot.
 7. The method of claim 1, wherein the signal informs a navigational control of a vehicle.
 8. The method of claim 1, wherein the signal informs a driver's information system.
 9. The method of claim 1, wherein one of the one or more objects is a region of flames in three-space.
 10. The method of claim 1, wherein one of the one or more objects is a region of smoke in three-space.
 11. The method of claim 1, wherein one of the one or more objects extends into a region of three-space that is obscured in both of the pair of images.
 12. The method of claim 1, wherein the identifying comprises preferring shapes that are symmetric about a vertical plane. 